<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Message extends Model
{
    //
    protected $table='messages';
    protected $fillable=[
        'message','url'
    ];

    /**
     * 添加建议
     * @param $data
     * @return bool
     */
    static   public function  add($data)
    {
       $re = self::create($data);
        if($re){
            return true;
        }
        return false;
    }
}
